package com.ruoyi.common.core.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;

/**
 * 处理业务逻辑用到的常量
 */
public class BusinessConstants {

    // 密码长度不少于8位且至少包含大写字母、小写字母、数字和特殊符号中的四种
    public static final String password1 = "^(?![A-Za-z0-9]+$)(?![a-z0-9\\W]+$)(?![A-Za-z\\W]+$)(?![A-Z0-9\\W]+$)[a-zA-Z0-9\\W]{8,}$";

    // 密码长度8-20位且至少包含大写字母、小写字母、数字或特殊符号中的任意三种
    public static final String password = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W_]+$)(?![a-z0-9]+$)(?![a-z\\W_]+$)(?![0-9\\W_]+$)[a-zA-Z0-9\\W_]{8,20}$";

    /**
     * 十二个月
     */
    public final static String[] MONTHS = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12",};

    /**
     * 上中下旬 01-10 11-20 21-31 最后一天由代码自动判断大小月
     */
    public static final List<HashMap<String, String>> TENSLIST = new ArrayList<HashMap<String, String>>() {
        {
            add(new HashMap<String, String>() {
                {
                    put("tenStart", "01");
                    put("tenEnd", "10");
                    put("ten1", "ten1");//与枚举类型定义对应
                }
            });
            add(new HashMap<String, String>() {
                {
                    put("tenStart", "11");
                    put("tenEnd", "20");
                    put("ten2", "ten2");//与枚举类型定义对应
                }
            });
            add(new HashMap<String, String>() {
                {
                    put("tenStart", "21");
                    put("tenEnd", "31");
                    put("ten3", "ten3");//与枚举类型定义对应
                }
            });
        }
    };
}